<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>

</head>
<body>
Welcome My World! You will enter a magical place.
<table border="12">
    {% for i in range(page_count) %}

        {% if i%3 == 0 %}
            <tr>
        {% endif %}
                <td>
                   {{ foods[i].food_id }},{{ foods[i].food_name }}
                </td>
        {% if (i%2 == 0 and i!=0) or (i == page_count-1) %}
            </tr>
        {% endif %}
    {% endfor %}

</table>
<form>
    <select id="food">
    {% for f in foods %}
        <option value = "{{ f.food_id }}">{{f.food_name}},{{f.food_price}}</option >
    {% endfor %}
</select>
discount:<input id="discount" value="1">
count:<input id="count" value="1">
<p></p>
<button id="add">add</button>
</form>


{% if order %}
{%for o in order%}
    {{ o.food_name }},{{ o.count }},{{ o.discount }},{{ o.sum }}
{% endfor %}
{{ total_price }}
{% endif %}
</body>
</html>